import { defineStore } from 'pinia'

export const useMystore = defineStore('mystore',{
  state:()=>({
    count:2
  }),

  getters:{
    doubleCount:(state)=>state.count * 2
  },

  actions:{
    increment(){
      return this.count++
    }
  }
})